﻿using de.wolfmarco.pas.Shared.Interfaces;
using Microsoft.Practices.Prism.Modularity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace de.wolfmarco.pas.Shared.MVVM
{
    public class RibbonTabEventArgs : ModuleEventArgs
    {
        public RibbonTabEventArgs(ModuleInfo moduleInfo)
            : base(moduleInfo)
        {
        }

        #region RibbonTabList

        private List<IRibbonTab> ribbonTabList;
        public void AddRibbonTab(IRibbonTab ribbonTab)
        {
            if (ribbonTabList == null)
                ribbonTabList = new List<IRibbonTab>();


            ribbonTabList.Add(ribbonTab);
        }
        public IRibbonTab[] RibbonTabList
        {
            get { return ribbonTabList.ToArray(); }
        }

        #endregion RibbonTabList
    }
}
